<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1><%= title %></h1>
    <p>Welcome to <%= title %></p>

  <%  if(username){  %>
      <div>
        <h4>欢迎你 : <%- username %></h4>
        <button onclick="location.href='/list'" >电影列表</button>
        <button onclick="location.href='/chat'" >聊天室</button>
        <button onclick="location.href='/logout'" >退出登录</button>
      </div>
  <%  }else{  %>
      <div>
        <button onclick="location.href='/login'">登录</button>
        <button onclick="location.href='/register'">注册</button>
      </div>
  <%  }  %> 
  </body>
</html>
